package cjj.example.project;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ProjectApplication {
    private static String env;

    public static void main(String[] args) {
        SpringApplication.run(ProjectApplication.class, args);
        System.out.println("hello world!");
        System.out.println("current environment is: " + env);
    }

    @Value("${env}")
    private void setEnv(String v) {
        env = v;
    }
}
